package com.cakeshop.model;

import java.util.List;

/**
 * TODO
 *
 * @author nineice
 * @date 2021/8/23 20:19
 */
public class Comment {
    /**
     * 评论楼层
     */
    private Integer id = null;
    /**
     * 评论者
     */
    private String username;
    /**
     * 评论日期
     */
    private String commentDate;
    /**
     * 评论内容
     */
    private String commentContent;
    /**
     * 点赞数
     */
    private Integer likeNum = 0;
    /**
     * 点踩数
     */
    private Integer noLikeNum = 0;
    /**
     * 回复
     */
    private String reply = null;

    public Comment() {
    }

    public Comment(String username, String commentDate, String commentContent) {
        this.username = username;
        this.commentDate = commentDate;
        this.commentContent = commentContent;
    }

    public Comment(String username, String commentDate, String commentContent, Integer likeNum, Integer noLikeNum, String reply) {
        this.username = username;
        this.commentDate = commentDate;
        this.commentContent = commentContent;
        this.likeNum = likeNum;
        this.noLikeNum = noLikeNum;
        this.reply = reply;
    }

    public Comment(Integer id, String username, String commentDate, String commentContent, Integer likeNum, Integer noLikeNum, String reply) {
        this.id = id;
        this.username = username;
        this.commentDate = commentDate;
        this.commentContent = commentContent;
        this.likeNum = likeNum;
        this.noLikeNum = noLikeNum;
        this.reply = reply;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCommentDate() {
        return commentDate;
    }

    public void setCommentDate(String commentDate) {
        this.commentDate = commentDate;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getNoLikeNum() {
        return noLikeNum;
    }

    public void setNoLikeNum(Integer noLikeNum) {
        this.noLikeNum = noLikeNum;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    @Override
    public String toString() {
        return "{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", commentDate='" + commentDate + '\'' +
                ", commentContent='" + commentContent + '\'' +
                ", likeNum=" + likeNum +
                ", noLikeNum=" + noLikeNum +
                ", reply=" + reply +
                "}║";
    }
}
